/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.integral.web.model.dto.manager;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.medusa.gruul.integral.api.entity.IntegralFreightTemplate;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Description:
 * @Author: xiaoq
 * @Date : 2019/11/20 9:10
 */
public class IntegralFreightTemplateDto {

	private Long id;

	@ApiModelProperty(value = "模板名称")
	@TableField("name")
	private String name;

	@ApiModelProperty(value = "积分商品表id")
	@TableField("integral_goods_id")
	private Long integralGoodsId;

	@ApiModelProperty(value = "计费类型:0->按重量；1->按件数")
	@TableField("charge_type")
	private Integer chargeType;

	@ApiModelProperty(value = "首重kg")
	@TableField("first_weight")
	private BigDecimal firstWeight;

	@ApiModelProperty(value = "首费（元）")
	@TableField("first_fee")
	private BigDecimal firstFee;

	@ApiModelProperty(value = "续重")
	@TableField("continue_weight")
	private BigDecimal continueWeight;

	@ApiModelProperty(value = "续费")
	@TableField("continue_fee")
	private BigDecimal continueFee;

	@ApiModelProperty(value = "目的地（省、市）")
	@TableField("dest")
	private String dest;

	public IntegralFreightTemplate coverIntegralFreightTemplate(){
		IntegralFreightTemplate integralFreightTemplate = new IntegralFreightTemplate();
		BeanUtil.copyProperties(this,integralFreightTemplate);
		return integralFreightTemplate;
	}
}
